import request from '@/utils/request'
export function summary(params) {
  return request({
    url:'/admin/payment/summary',
    method:'get',
    params:params
  })
}

export function list(params) {
  return request({
    url:'/admin/payment/list',
    method:'get',
    params:params
  })
}

export function find(id) {
  return request({
    url:'/admin/payment/find/'+id,
    method:'get'
  })
}

export function del(id) {
  return request({
    url:'/admin/payment/del/'+id,
    method:'post'
  })
}

export function save(data) {
  return request({
    url:'/admin/payment/save',
    method:'post',
    data:data,
  })
}

export function update(data,params) {
  return request({
    url:'/admin/payment/update',
    method:'post',
    data:data,
    params:params
  })
}

export function query(params) {
  return request({
    url:'/admin/payment/query',
    method:'post',
    params:params
  })
}

export function refund(params) {
  return request({
    url:'/admin/payment/refund',
    method:'post',
    params:params
  })
}
export function confirm(id) {
  return request({
    url:'/admin/payment/confirm/'+id,
    method:'get',
  })
}

